﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using DZ.Data_Modals;  
using DZ.Data__Class;
namespace DZ.Forms
{
    /// <summary>
    /// Interaction logic for SlideEntry.xaml
    /// </summary>
    public partial class SlideEntry : Window
    {
        DB_DZA_Entities dbContext = new DB_DZA_Entities();
        TblAntibody objAntibody = new TblAntibody();
        public SlideEntry()
        {
            InitializeComponent();
            FillGrid();
        }
        private void FillGrid()
        {
            try
            {


                //int intCubateT = Convert.ToInt32(cmbIncubation.Text);
                //int  intCubateT = 30;
                List<TblAntibody> TableData = dbContext.TblAntibodies.ToList();
                gvSlideEntry .ItemsSource = TableData;
            }
            catch (Exception ex)
            {

                MessageBox.Show(ex.ToString());
            }
        }
        private void btnClose_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                this.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }

        private void btnSave_Click(object sender, RoutedEventArgs e)
        {
            TblBatchDetail  objBatchD = new TblBatchDetail ();

            //for (int i = 0; i < gvSlideEntry.Items.Count; i++)
            //{
                
            //}

            foreach (DataGridRow row in gvSlideEntry.Items )
            {

            }

        }
    }
}
